import { auth } from "@/tools/auth";

export function formatDateTime(dateTimeStr) {
    // 2021-05-29T03:25:28.555336Z
    const date = dateTimeStr.split('T')[0];
    const time = dateTimeStr.split('T')[1].split('.')[0];
    return date + ' ' + time;
}

export function isCourseManager(manager_id) {
    return (auth.currentUser && (auth.currentUser.user_id === manager_id));
}